package club.gskj.gulimall.product.service;

import club.gskj.gulimall.product.vo.AttrGroupWithAttrsVo;
import club.gskj.gulimall.product.vo.SkuItemVo;
import club.gskj.gulimall.product.vo.SpuItemAttrGroupVo;
import com.baomidou.mybatisplus.extension.service.IService;
import club.gskj.common.utils.PageUtils;
import club.gskj.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author 康纳-connor
 * @email 2417039231@gmail.com
 * @date 2020-12-27 15:07:43
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 根据分类id查询， 属性 属性分组
     *
     * @param catId
     * @return
     */
    List<AttrGroupWithAttrsVo> listAttrByAttrGroupByCatId(Long catId);

    /***
     *  根据spuId 查询对应的 所有分组信息、基本参数信息
     *
     * @param id
     * @param spuId
     * @return
     */
    List<SpuItemAttrGroupVo> listAttrGroupWithAttrsBySpuId(Long spuId, Long catelogId);
}

